// 品牌管理api模块
import request from '@/utils/request'
//获取一二三级联动内容
export const reqGetCategory1=() => request({url:'/admin/product/getCategory1',method:'get'})
export const reqGetCategory2=(category1Id) => request({url:`/admin/product/getCategory2/${category1Id}`,method:'get'})
export const reqGetCategory3=(category2Id) => request({url:`/admin/product/getCategory3/${category2Id}`,method:'get'})
//获取商品属性
export const reqGetAttrList=(category1Id,category2Id,category3Id) => request({url:`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,method:'get'})
//添加属性与属性值
export const reqAddOrEditAttr=(data) => request({url:'/admin/product/saveAttrInfo',method:'post',data})
//删除属性
export const reqDeleteAttr=(attrId) => request({url:`/admin/product/deleteAttr/${attrId}`,method:'delete'})